package com.grgbanking.it.project.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.grgbanking.it.common.formatter.annotation.TimestampFormat;

/**
 * 任务
 * 
 * Task
 * 
 * @author 潘广伟
 * @Email p_3er@qq.com
 * @Date 2015-1-28 下午2:53:08
 * 
 * @version 1.0.0
 *
 */
@Entity
@Table(name = "task", catalog = "it_system")
public class Task implements java.io.Serializable {
	private Integer id;
	private String no;
	private Timestamp createTime;
	private String creator;
	private String content;
	private Integer type;
	@TimestampFormat
	private Timestamp start;
	@TimestampFormat
	private Timestamp end;
	
	private Integer departmentId;
	private String departmentName;
	private String username;
	private String trueName;
	private Integer state;
	private String require;
	private Integer projectId;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "no_", length = 45)
	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}


	@Column(name = "createTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}
	

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "creator", length = 45)
	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "content", length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}


	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "start", length = 19)
	public Timestamp getStart() {
		return this.start;
	}

	public void setStart(Timestamp start) {
		this.start = start;
	}

	@Column(name = "end", length = 19)
	public Timestamp getEnd() {
		return this.end;
	}

	public void setEnd(Timestamp end) {
		this.end = end;
	}

	
	@Column(name = "departmentId")
	public Integer getDepartmentId() {
		return this.departmentId;
	}

	public void setDepartmentId(Integer departmentId) {
		this.departmentId = departmentId;
	}

	@Column(name = "departmentName", length = 45)
	public String getDepartmentName() {
		return this.departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	@Column(name = "username", length = 45)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name = "require_", length = 65535)
	public String getRequire() {
		return this.require;
	}

	public void setRequire(String require) {
		this.require = require;
	}

	@Column(name = "projectId")
	public Integer getProjectId() {
		return this.projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	@Column(name = "trueName")
	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}
	
	

}